#pragma once
#include "Main/stdafx.h"
#include "Game/FV/FvSingleton.h"

class HNShopScence
	:public Node
	,public FvSingleton<HNShopScence> 
{
	struct Goods
	{
		std::string goodsId;
		std::string goodsRMB;
		std::string goodsChip;
		std::string goodsType;
	};
public:
	HNShopScence();
	~HNShopScence();
public:
	virtual bool init();
public:
	void		EnterScence();
	void		hideAll();

	Node*		_layout;
	ListView*	shopList;
private:
	void		BtnCallBack(Ref* pSender, cocos2d::ui::Widget::TouchEventType touchtype);
	void		selectedItemEvent(cocos2d::Ref *pSender, ListViewEventType type);
	void		Rsp_shop_list(const std::string& data);
	void		Rsp_shop_excharge(const std::string& data);
	void		showUserInfo();

	void        Rsp_WXPay_list(const std::string& data);//new
	void        RspWXPay(const char* type, const char* GID, const char* UserID, const char* TypeInfoLog, const char* PayPlatform, const char* paytype);

	std::map<int, Goods> map_Goods;

	std::vector<cocos2d::ui::Text*> vec_Txtfangka;
	std::vector<cocos2d::ui::Text*> vec_Txtmoney;
};
